---@diagnostic disable: lowercase-global, undefined-global, trailing-space

local modid,need_tag = 'yuemiheng','yuemiheng'

---@type data_recipe[]
local data = {
	-- {
	-- 	recipe_name = 'choleknife_recipe_1', --食谱ID
	-- 	ingredients = { --配方
	-- 		Injectatlas('pack_gold',1), 
	-- 		Ingredient('rope',2), 
	-- 		Ingredient('log',2),
	-- 	},
	-- 	tech = TECH.SCIENCE_ONE, --所需科技 ,TECH.LOST 表示需要蓝图才能解锁
	-- 	isOriginalItem = true, --是官方物品(官方物品严禁写atlas和image路径,因为是自动获取的),不写则为自定义物品
	-- 	config ={ --其他的一些配置,可不写
	-- 		--制作出来的物品,不写则默认制作出来的预制物为食谱ID
	-- 		product = 'choleknife', 
	-- 		--xml路径,不写则默认路径为,'images/inventoryimages/'..product..'.xml' 或 'images/inventoryimages/'..recipe_name..'.xml'
	-- 		atlas = 'images/choleknife.xml',
	-- 		--图片名称,不写则默认名称为 product..'.tex' 或 recipe_name..'.tex'
	-- 		image = 'choleknife.tex',
	-- 		--制作出的物品数量,不写则为1
	-- 		numtogive = 40,
	-- 		--不需要解锁
	-- 		nounlock = false,
	-- 	},
	-- 	filters = {'CHARACTER'} --将物品添加到这些分类中
	-- },
	{
		recipe_name = 'yuemiheng_tool',
		ingredients = {
			Ingredient("marble",10), 
			Ingredient("thulecite",10), 
			Ingredient("horrorfuel",5),
			Ingredient("purebrilliance",5),
			Ingredient("dreadstone",1), 
		},
		tech = TECH.NONE,
		config = {
			builder_tag = need_tag,
		},
		filters = {'CHARACTER','TOOLS'}
	},
	{
		recipe_name = 'yuemiheng_spear',
		ingredients = {
			Ingredient("dragon_scales",1), 
			Ingredient("thulecite",5), 
			Ingredient("lunarplant_husk",5),
			Ingredient("dreadstone",5),
			Ingredient("redgem",1), 
			Ingredient("bluegem",1),
		},
		tech = TECH.NONE,
		config = {
			builder_tag = need_tag,
		},
		filters = {'CHARACTER','WEAPONS'}
	},
	{
		recipe_name = 'yuemiheng_cape',
		ingredients = {
			Ingredient("goose_feather",10), 
			Ingredient("bearger_fur",1), 
			Ingredient("goldnugget",10),
			Ingredient("nightmarefuel",10),
		},
		tech = TECH.NONE,
		config = {
			builder_tag = need_tag,
		},
		filters = {'CHARACTER','CLOTHING'}
	},
	{
		recipe_name = 'yuemiheng_hat',
		ingredients = {
			Ingredient("deerclops_eyeball",1), 
			Ingredient("silk",10), 
			Ingredient("nightmarefuel",10),
			Ingredient("yellowgem",1),
			Ingredient("orangegem",1),
			Ingredient("greengem",1),
			
		},
		tech = TECH.NONE,
		config = {
			builder_tag = need_tag,
		},
		filters = {'CHARACTER','CLOTHING'}
	},
	{
		recipe_name = 'yuemiheng_shadow',
		ingredients = {
			Ingredient(CHARACTER_INGREDIENT.HEALTH, 60),
			Ingredient(CHARACTER_INGREDIENT.SANITY, 60),
		},
		tech = TECH.NONE,
		config = {
			builder_tag = need_tag,
		},
		filters = {'CHARACTER','MAGIC'}
	},
}

local unlock_tag_when_lvled = 'yuemiheng_lv20'

---@type data_recipe[]
local wilson_itm_transfer = {
	{
		recipe_name = modid..'log',
		ingredients = {
			Ingredient('twigs',3),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'log',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid..'twigs',
		ingredients = {
			Ingredient('log',1),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'twigs',
			numtogive = 2,
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid..'rocks',
		ingredients = {
			Ingredient("flint",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = "rocks",
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid..'flint',
		ingredients = {
			Ingredient('rocks',3),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'flint',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."nitre",
		ingredients = {
			Ingredient("goldnugget",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'nitre',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."goldnugget",
		ingredients = {
			Ingredient("nitre",3),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'goldnugget',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."cutstone",
		ingredients = {
			Ingredient("marble",1),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'cutstone',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."moonrocknugget",
		ingredients = {
			Ingredient("marble",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'moonrocknugget',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."marble",
		ingredients = {
			Ingredient("cutstone",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'marble',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."redgem",
		ingredients = {
			Ingredient("bluegem",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'redgem',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."bluegem",
		ingredients = {
			Ingredient("redgem",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'bluegem',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."purplegem",
		ingredients = {
			Ingredient("redgem",1),
			Ingredient("bluegem",1),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'purplegem',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."orangegem",
		ingredients = {
			Ingredient("purplegem",3),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'orangegem',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."yellowgem",
		ingredients = {
			Ingredient("orangegem",3),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'yellowgem',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."greengem",
		ingredients = {
			Ingredient("yellowgem",3),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'greengem',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."opalpreciousgem",
		ingredients = {
			Ingredient("greengem",1),
			Ingredient("bluegem",1),
			Ingredient("yellowgem",1),
			Ingredient("redgem",1),
			Ingredient("purplegem",1),
			Ingredient("orangegem",1),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'opalpreciousgem',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."meat",
		ingredients = {
			Ingredient("smallmeat",3),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = "meat",
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."smallmeat",
		ingredients = {
			Ingredient("meat",1),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = "smallmeat",
			numtogive = 2,
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."beefalowool",
		ingredients = {
			Ingredient("beardhair",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = "beefalowool",
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."beardhair",
		ingredients = {
			Ingredient("beefalowool",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = "beardhair",
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."boneshard",
		ingredients = {
			Ingredient("houndstooth",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = "boneshard",
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."houndstooth",
		ingredients = {
			Ingredient("boneshard",2),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = "houndstooth",
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."poop",
		ingredients = {
			Ingredient("spoiled_food",6),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = "poop",
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
}

local self_itm_transfer = {
	{
		recipe_name = modid.."horrorfuel",
		ingredients = {
			Ingredient("nightmarefuel",5),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'horrorfuel',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
	{
		recipe_name = modid.."purebrilliance",
		ingredients = {
			Ingredient("moonglass",5),
		},
		tech = TECH.NONE,
		isOriginalItem = true,
		config = {
			product = 'purebrilliance',
			builder_tag = unlock_tag_when_lvled,
		},
		filters = {'REFINE'}
	},
}

for _,v in pairs(wilson_itm_transfer) do
	table.insert(data,v)
end



return data